let score = 11

if(score>=90){
    console.log("优秀")
}else if(score>=80){
    console.log("良好")
}else if(score>=60){
    console.log("及格")
}else{
    console.log("补考")
}

//>=90 优秀  >=80 良好 >=60 及格 否则 补考
switch (true) {
    default:
        console.log("补考")
        break;
    case score >= 90:
        console.log("优秀")
        break
    case score >= 80:
        console.log("良好")
        break
    case score >= 60:
        console.log("及格")
        break
}
